<template>
    <div class="fenlei">
      <!-- 添加分类 -->
      <el-row class="mb-4">
        <el-button type="primary" @click="addFenLei">添加分类</el-button>
      </el-row>
      <!-- 分类列表 -->
      <TableFenLeiList></TableFenLeiList>
      <!-- 分页器 -->
      <Pagination></Pagination>
    </div>
  </template>
  
  <script setup lang="ts">
  import TableFenLeiList from "../../../components/table/TableFenLeiList.vue"
// 添加分类事件
const addFenLei=()=>{
  console.log("触发事件");
  alert("添加分类")
}
  </script>
  
  <style scoped>
  .fenlei{
    padding: 20px;
    background: white;
    box-shadow: 0 1px 1px rgba(0,0,0,.15)
  }
  </style>